<%@ page language="java" contentType="text/html; charset=ISO-8859-1"pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
	<style>
		body {
			padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
		}
    </style>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<!-- Bootstrap -->
	<link href="lib/css/bootstrap.min.css" rel="stylesheet" media="screen">
	<script src="lib/js/bootstrap.min.js"></script>
	<script src="lib/js/bootstrap-dropdown.js"></script>
	<script src="lib/js/jquery.js"></script>
    <script src="lib/js/bootstrap-transition.js"></script>
    <script src="lib/js/bootstrap-alert.js"></script>
    <script src="lib/js/bootstrap-modal.js"></script>
    <script src="lib/js/bootstrap-dropdown.js"></script>
    <script src="lib/js/bootstrap-scrollspy.js"></script>
    <script src="lib/js/bootstrap-tab.js"></script>
    <script src="lib/js/bootstrap-tooltip.js"></script>
    <script src="lib/js/bootstrap-popover.js"></script>
    <script src="lib/js/bootstrap-button.js"></script>
    <script src="lib/js/bootstrap-collapse.js"></script>
    <script src="lib/js/bootstrap-carousel.js"></script>
    <script src="lib/js/bootstrap-typeahead.js"></script>
    <script src="lib/js/holder/holder.js"></script>
    <script src="lib/ckeditor/ckeditor.js"></script>
    <script>CKEDITOR.disableAutoInline = true;</script>
</head>
<body>
<% 

String Mail = (String) session.getAttribute("Email");
String deco = request.getParameter("deco");  
if  (deco != null)
{  
	   HttpSession Session=request.getSession(); 
  	   Session.invalidate(); 
       Mail = null;
}
%>
	<div class="navbar navbar-inverse navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
				<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>
				<a class="brand" href="index.jsp">Document</a>
				<div class="nav-collapse collapse">
					<ul class="nav navbar-nav">
						<li class="active"><a href="index.jsp">Accueil</a></li>
						
						<%

						if(Mail != null) {						
						%>		
							<li><a href="choixDocument.jsp">Generation document</a></li>				
							<li><a href = "changement.jsp">Changement Information</a></li>
						<%
						}
						%>
					
					</ul>
					<% 
					if(Mail == null) {
					%>
						<ul class="nav navbar-nav pull-right">
							<a type="submit" href="connexion.jsp" class="btn btn-success">Sign in</a>
							<a type="submit" href="inscription.jsp" class="btn btn-danger">Register</a>
						</ul>
					<%
					} else {
					%>
						<ul class="nav navbar-nav pull-right">
							<a type="submit" href='index.jsp?deco="deconexion"' class="btn btn-success">Deconnexion</a>
							<li><a href="Backoffice/backoffice.jsp">Backoffice</a></li>
						</ul>
					<%	}	%>
				
							
							
								
						
				</div><!--/.nav-collapse -->
			</div><!--/.container -->
		</div><!--/.navbar-inner -->
	</div>
</body>
</html>